<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>SWIM</title>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<div id="menu-wrapper">
		<div id="menu">
			<ul>
				<li class="current_page_item"><a href="index.jsp">Homepage</a></li>
				<li><a href="registration.jsp">Register</a></li>
			</ul>
		</div>
		<!-- end #menu -->
	</div>

<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">
				<h1><a href="#">SWIM</a></h1>
				<p>"A social network for friends needing or offering help"</p>
			</div>
		</div>
	</div>
	<!-- end #header -->
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post">
						<h2 class="title">Welcome to SWIM! </h2>
						<div class="entry">
							<p><img src="images/pic01.jpg" width="600" height="300" alt="" /></p>
							<p style="font-size: 14pt;">SWIM is a social network for friends needing or offering help.</p> 
							<p style="font-size: 14pt;"><a href="register.jsp">Register</a> now or <a href="login.jsp">login</a> to take advantage of all of its benefits!</p>
							<p style="font-size: 12pt;">As an unregistered user you can only search for skills and see a list of results, but don't be shy, try it out!</p>
						</div>
					</div>
					<div style="clear: both;">&nbsp;</div>
				</div>
				<!-- end #content -->
				<div id="sidebar">
					<ul>
						<li>
							<h2>Search a skill</h2>
							<p>Search for users with a skill you need:</p>
							<div style="margin-left: 7%;">
								<form method="post" action="results.jsp"> 
									<div>
										<select name = "query">
										<% Iterable<String> list = (Iterable<String>) request.getAttribute("skills");
										 for(String s: list) {
										 	%><option><%= s %></option>
										<% } %>
										
										</select> 
										<input type="hidden" name="type" value="skill"/>
										
										<input type="submit" value="Search"/>
										<br></br>
										<br></br>
									</div>
								</form>
							</div>
						</li>
						
						<li>
							<h2>Login</h2>
							<div>
							<form method="post" action="login.jsp"> 
									<div>
									<p><input type="text" name="email" size=30/></p>
									<p><input type="password" name="password" size=30/></p>
									
									<div style="margin-left: 7%">
										<input type="submit" value="Login"/>
									</div>
									</div>
								</form>
							</div> 
						</li>
						
					</ul>
				</div>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	<p></p>
</div>
<!-- end #footer -->
</body>
</html>